<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 STRICT//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Microchip Metering Demo App</title>
<link href="../meter.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="shadow-one"><div id="shadow-two"><div id="shadow-three"><div id="shadow-four">
<div id="page">
<div style="padding:0 0 5px 5px"><img src="../mchp.gif" alt="Microchip" /></div>
<div id="title"><div class="right">
Microchip Metering Demo</div></div>
<div id="menu">
<a href="/index.htm">Overview</a>
<a href="/monitor.htm">Monitor</a>
<a href="/protect/billing.htm">Billing</a>
<a href="/protect/config.htm">Configuration</a>
</div><div id="content">
<h1>Board Configuration</h1>
<p>This page allows the configuration of the board's network settings.</p>
<p class="error">
<b>CAUTION:</b> Incorrect settings may cause the board to lose network 
connectivity.</p>
<p>Enter the new settings for the board below:</p>
<form method="post" action="/protect/config.htm" name="config">
<fieldset>
<div><label>MAC Address:</label>
<input type="text" name="mac" value="~config_mac~" /></div>
<div><label>Host Name:</label>
<input type="text" name="host" value="~config_hostname~" /></div>
<div>&nbsp;</div>
<div>
<input type="checkbox" class="sm" name="dhcpen" value="1" onclick="configIPBoxes()" ~config_dhcpchecked~ /> Enable DHCP</div>
<div><label>IP Address:</label>
<td><input type="text" name="ip" value="~config_ip~" /></div>
<div><label>Gateway:</label>
<td><input type="text" name="gw" value="~config_gw~" /></div>
<div><label>Subnet Mask:</label>
<td><input type="text" name="subnet" value="~config_subnet~" /></div>
<div><label>Primary DNS:</label>
<td><input type="text" name="dns1" value="~config_dns1~" /></div>
<div><label>Secondary DNS:</label>
<input type="text" name="dns2" value="~config_dns2~" /></div>
<div><input type="submit" class="sm" value="Save Config" /></div>
</fieldset>
</form>
</div>
<script language="javascript">
<!--
function configIPBoxes() {
	var st = document.forms.config.dhcpen.checked;
	e = document.forms.config;
	e.ip.disabled = st;
	e.gw.disabled = st;
	e.subnet.disabled = st;
	e.dns1.disabled = st;
	e.dns2.disabled = st;
}

configIPBoxes();
//-->
</script>
<div class="spacer"></div>
<div id="footer">
<span id="builddate">~builddate~</span><span id="version">~version~</span>Copyright &copy; 2009 Microchip Technology, Inc.</div>
</body>
</html>